import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './registerServiceWorker'

Vue.config.productionTip = false

var bus  = new Vue()
Vue.prototype.$bus = bus;  // this.$bus  

// 淘宝适配  
// import "lib-flexible"

// 全局样式
import "@/assets/styles/index.scss"

// 导入 Vant
import Vant, { ImagePreview }   from 'vant';
import 'vant/lib/index.css';  // vant UI  样式
Vue.use(Vant);
// 全局注册   图片预览
Vue.use(ImagePreview);

// 全局混入
import "@/utils/mixins"
// 全局注册组件
import "@/components"


//正则
import {reg} from "@/utils/validate"
Vue.prototype.$reg = reg

//ajax
import {axios,baseURL} from "@/api/ajax"
Vue.prototype.$axios = axios
Vue.prototype.$baseURL = baseURL

import {http} from "@/api"
Vue.prototype.$ajax = http

import "@/utils/golbal"

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
